<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <!-- <img src="https://damp-test.earth.xpaas.lenovo.com/health" onerror="handleErr(event)" alt="" onload="onloaded(event)"> -->
  <script>
    const src = 'https://damp-test.earth.xpaas.lenovo.com/health';

    let sp = document.createElement("script");
    sp.onerror = function (error) {
      console.log('sp.onerror -- ', error);
    }
    sp.src = src;
    console.log(sp)
    document.body.appendChild(sp);
    // const w = window.location.assign(src)
    // console.log(w)
    // function handleErr(e) {
    //   console.log("handleErr ??- ", e)
    // }
    // let img = new Image();
    // img.src = 'https://damp-test.earth.xpaas.lenovo.com/health';
    // img.onerror = handleErr;




    // var test = {
    //   a: {
    //     b: 'hello',
    //   },
    // };
    // var { [Reflect.ownKeys(key)]: dynamic } = (({
    //   [Reflect.ownKeys(test)]: key,
    // } = test), key);


    // console.log("key", key);
    // console.log("dynamic", dynamic);
    // console.log("test", test);
    // console.log("[Reflect.ownKeys(key)]", [Reflect.ownKeys(key)])
    // console.log("Reflect.ownKeys(key)", Reflect.ownKeys(key))
    // console.log(` (({
    //   [Reflect.ownKeys(test)]: key,
    // } = test), key)`, (({
    //   [Reflect.ownKeys(test)]: key,
    // } = test), key));

  </script>
</body>

</html>